package com.hfut.jpoa.dao;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.common.exception.DaoException;
import com.hfut.jpoa.dto.CustomerDTO;
import com.hfut.jpoa.model.Customer;

public interface CustomerDAO
{

	int deleteByPrimaryKey(Integer id) throws DaoException;

	void insert(Customer record) throws DaoException;

	public Integer insertSelective(Customer record) throws DaoException;

	Customer selectByPrimaryKey(Integer id) throws DaoException;

	int updateByPrimaryKeySelective(Customer record) throws DaoException;

	int updateByPrimaryKey(Customer record) throws DaoException;

	public List<Customer> queryCustomers(Customer record) throws DaoException;

	public ResultDto<Customer> findInfoForPage(CustomerDTO dto)
	        throws DaoException;
}